[ToC] [Up] [Back] [Next] ... [Book Plug] |
The Information Commons .................... Introduction to HTML |
The address of the referenced document can be specified by an absolute or partial URL:
<A HREF="URL"> anchor </A>Where URL (Uniform Resource Locator) is the URL of the document to be accessed. For example HREF can use http: to access other HTML documents, images, etc. or it can use ftp: or gopher:. It can even indicate a telnet: connection. See the URL document for more information on the possibilities.
`Partial' URLs are also possible when accessing any server, but are particularly common within document collections on http servers. These are convenient for referencing documents that come from the same server as the current document -- that is, the one currently being viewed. In this case you need only specify the location of the document relative to the current one. Here are some examples of the varied possibilities:
<A NAME="proj1">Project 1</A>From within this document we can create a hypertext link to this place by specifying the anchor:
<A HREF="#proj1">(see Project 1)</A>If we wanted to reference this place from another document in the same directory we would put
<A HREF="doc.html#proj1">(see Project 1)</A>and so on.
HREF="http://www.foo.com/cgi-bin/phone"For more information look at Section 6; you should also consult you local httpd server documentation.
[ToC] [Up] [Back] [Next] ... [Book Plug] | .................... Introduction to HTML |
© Ian Graham 1994-1996 | Page Last Updated: 15 January 1996 |